package com.example.controller.shouye;

import com.example.pojo.Node;
import com.example.service.shouye.ShouyeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
@RequestMapping("/shouye")
@CrossOrigin
public class ShouyeController {
    @Autowired
    private ShouyeService shouyeService;
    /**
     * 功能描述: <br>
     * 〈〉
     * @Param: []首页菜单栏查询
     * @Return: java.util.List<com.example.pojo.Node>
     * @Author: 10260
     * @Date: 2023/2/2 11:45
     */
    @ResponseBody
    @RequestMapping("/all")
    @CrossOrigin
    public List<Node> all(){
        List<Node> all = shouyeService.all();
       // List quanxian = shouyeService.quanxian(account);
        return all;
    }
}
